package com.blog.admin.listener.event;

import lombok.*;
import org.springframework.context.ApplicationEvent;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

import java.time.LocalDateTime;

/**
 * <p>
 * 缓存刷新时事件
 * </p>
 *
 * @author Valerie
 * @date 2023/6/3
 **/
@Getter
@Setter
public class CacheEvent extends ApplicationEvent {

    private String key;

    @Builder.Default
    private LocalDateTime localDateTime = LocalDateTime.now();

    public CacheEvent(Object source, String key){
        super(source);
        this.key = key;
    }




}
